﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;
using System.Collections.Generic;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-11-05 22:04
    /// 描 述：实体类
    /// </summary>
    [Table("goods_types")]
    public class GoodsTypesEntity : BaseEntity
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string type_name { get; set; }

        public int? IsBrandModel { get; set; }

        public string input_BrandList { get; set; }

        public string input_selectedValues { get; set; }

        [NotMapped]
        public List<GoodsTypeBrand> typeBrands { get; set; } = new List<GoodsTypeBrand>();
    }

    [Table("goodstypebrand")]
    public class GoodsTypeBrand : BaseEntity
    {
        [JsonConverter(typeof(StringJsonConverter))]
        public long? brandid { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? typeid { get; set; }
        
        public string brandname { get; set; }

        public string modellist { get; set; }
    }
}
